Add a test for various texture uploads
authorMatthias Clasen <mclasen@redhat.com>
Sat, 26 Sep 2020 03:02:19 +0000 (23:02 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 26 Sep 2020 13:20:00 +0000 (09:20 -0400)
commitd56ad7c40cfa971d24fc093d99163d270d19b226
tree3fffd6e04585b6471fe39b28f9e01cdca4b1b192
parentae09e20e8a19ab67f10c7341fcd721dc3c70171d
Add a test for various texture uploads

Create textures with various characteristics (alpha, premultiplication,
stride) that trigger different code paths in the gl texture upload
function, and show the resulting images. If all goes well, they all
should look the same.

On my system, this tests texture upload for memory formats
GDK_MEMORY_B8G8R8A8_PREMULTIPLIED, GDK_MEMORY_R8G8B8A8, and
GDK_MEMORY_R8G8B8, and it works with both gl and gles.
tests/meson.build
tests/testupload.c [new file with mode: 0644]